package com.mspbots.core.wise.service;

import com.mspbots.core.DefaultBaseService;
import com.mspbots.core.wise.model.Tenant;

import java.util.List;

public interface TenantService extends DefaultBaseService<Tenant> {

    List<Tenant> findByStatus();

    /**
     * get all tenant
     * get tenant and  get Tenant in Configuration
     *
     * @return all tenant in Configuration
     */
    List<Tenant> findByAll();

    /**
     * get all active tenant
     * get tenant and  get Tenant in Configuration
     *
     * @return all tenant in Configuration
     */
    List<Tenant> findByActive();

    boolean saveFirst(Tenant tenant);

    boolean deleteTenant(long tenantId);


    Integer existTenant(String microsoftId);


    List<Tenant> findByIdsAndActive(List<Long> ids);

    boolean teamsAuthority(Long id, Boolean authority);

}
